#include <STC89C5xRC.H>
#include <intrins.h>



void Delayms(unsigned int xms)		//@11.0592MHz
{
	unsigned char i, j;
  while(xms)
	{
		_nop_();
		i = 2;
		j = 199;
		do
		{
			while (--j);
		} while (--i);
		xms--;
	}
}
int i;
i = i>>1;
void main()
{
		while(1)
	{
		P2 = 0xfe;
	  Delayms(100);
	  P2 = 0xfd;
	  Delayms(200);
		P2 = 0xfb;
	  Delayms(300);
	  P2 = 0xf7;
	  Delayms(400);
		P2 = 0xef;
	  Delayms(500);
	  P2 = 0xdf;
	  Delayms(600);
		P2 = 0xbf;
	  Delayms(700);
	  P2 = 0x7f;
	  Delayms(800);

	}
}